# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-unicodecsv
pkgver=0.14.1
pkgrel=8
pkgdesc="Python's stdlib csv module is nice, but it doesn't support unicode. This module is a drop-in replacement which *does*."
arch=('any')
url="https://github.com/jdunck/python-unicodecsv"
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/jdunck/python-unicodecsv/archive/$pkgver.tar.gz")
sha512sums=('9135c0f3702d60d72b2544476feb9e924b8d592e06d21eca98cd10406de9ecca49bcde9e9bfa7baeb4358dddf86ad737e155355d8b927de5b93912201a8d87b0')

build() {
  cd "$pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

